package sch.frog.structural.adapter.objectadapter.A;

import sch.frog.structural.adapter.objectadapter.B.ClassB;

public class IClassaAdapter implements IClassA {

    private ClassB classB;

    public IClassaAdapter(ClassB classB) {
        this.classB = classB;
    }

    @Override
    public void show() {
        classB.introduce();
    }

    @Override
    public int add(int a, int b) {
        return classB.sub(a, 0 - b);
    }
}
